<!-- Attribute Filter Policies Options -->
<div class="panel panel-default">
    <div class="panel-heading"><span th:remove="tag" th:text="#{services.form.header.attrPolicy}" /></div>
    <div class="panel-body">
        <div class="radio-group">
            
            <!-- Filter Policies Radio Button - Return Allowed -->
            <label class="radio-inline">
                <input type="checkbox" name="policiesReturnMapped" id="policiesReturnMapped"
                       ng-model="serviceFormCtrl.serviceData.attrRelease.attrPolicy.wsfed_only"
                       ng-disabled="serviceFormCtrl.isEmpty( serviceFormCtrl.formData.availableAttributes )" />
                <span th:remove="tag" th:text="#{services.form.label.wsfed.wsFederationOnly}" />
            </label>
        </div>

        <!-- Attribute Release Policies Return Mapped Option -->
        <div class="panel panel-default" ng-show="serviceFormCtrl.serviceData.attrRelease.attrPolicy.wsfed_only &amp;&amp; !serviceFormCtrl.isEmpty( serviceFormCtrl.formData.availableAttributes )">
            <table id="returnMapTable" class="table table-striped table-hover table-responsive table-condensed" >
                <thead>
                <tr>
                    <th class="col-md-4"><span th:remove="tag" th:text="#{services.form.label.attrRelease.policies.sourceAttribute}" /></th>
                    <th class="col-md-8">
                        <span th:remove="tag" th:text="#{services.form.label.attrRelease.policies.casAttribute}" />
                        <i class="fa fa-lg fa-question-circle form-tooltip-icon no-float"
                           data-toggle="tooltip"
                           data-placement="top"
                           th:title="#{services.form.tooltip.attrRelease.policies.returnMapped}"></i>
                    </th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="mappedValue in serviceFormCtrl.formData.availableAttributes">
                    <td class="va-middle">{{ mappedValue }}</td>
                    <td>
                        <select class="form-control"
                            ng-options="item as item.name for item in serviceFormCtrl.selectOptions.wsfedClaimList"
                            ng-model="serviceFormCtrl.serviceData.attrRelease.attrPolicy.wsfed.claim[mappedValue]"></select>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>

    </div>
</div>
